package singlton;

import java.util.ArrayList;
import java.util.List;

/**
 * @classname:UserTest
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/22 23:01
 * @version: 0.1
 * @since:1.8
 */
public class UserTest {
    public static void main(String[] args) {

        List<Thread> list = new ArrayList<>();

        for (int i = 0; i < 1000; i++) {
           list.add( new Thread(()->{
                System.out.println(User.getInstance());
            }));
        }
        list.forEach(Thread::start);

    }
}
